import Vue from 'vue'
let vm=new Vue()
export const $success=(res)=>{
    vm.$message({
        message:res,
        type:'success'
    })
}
export const $warning=(res)=>{
    vm.$message({
        message:res,
        type:'warning'
    })
}
export const $error=(res)=>{
    vm.$message({
        message:res,
        type:'error'
    })
}